{"version":3,"sources":["script.js"],"names":["window","BX","namespace","UI","TileSelector","selectorList","Tile","params","this","id","name","node","data","removeNode","nameNode","Helper","getNode","textContent","prototype","changeRemoving","canRemove","style","display","init","events","containerClick","tileClick","tileRemove","tileEdit","tileAdd","buttonAdd","buttonSelect","buttonSelectFirst","search","input","searcherCategoryClick","searcherItemClick","searcherInit","getById","filtered","filter","item","document","body","contains","context","length","getList","list","containerId","duplicates","multiple","readonly","manualInputEnd","caption","captionMore","tilesLimit","parseInt","attributeId","attributeData","tileContainer","tileTemplate","buttonMore","getNodes","forEach","initNode","bind","initEventHandlers","searcher","push","onButtonAdd","onContainerClick","onButtonSelect","onInput","onButtonMore","onInputEnd","handleKeyEnter","e","key","preventDefault","stopPropagation","getSearchInput","isSearcherInit","clearSearcher","isButtonSelectFired","hide","hideSearcher","showSearcher","title","Searcher","caller","fire","filterByName","show","setSearcherData","dataList","setCategories","getAttribute","JSON","parse","util","htmlspecialcharsback","tile","findDuplicates","onRemove","onClick","removeTile","SelectorManager","selectorInstance","instances","callback","unSelect","type","isNotEmptyObject","isNotEmptyString","entityType","entities","toUpperCase","items","match","selectorId","removeTiles","deleteFromArray","indexOf","remove","recalcButtonSelectText","recalcMore","checkTilesLimit","action","index","getTile","getTilesData","map","getTilesId","getTiles","addTile","background","color","existingTile","template","innerHTML","htmlspecialchars","state","toLowerCase","extranet","crmEmail","replace","stringify","createElement","children","parentNode","insertBefore","updateTile","bgcolor","backgroundColor","result","itemsCount","tileAction","message","eventName","onCustomEvent","value","changeDisplay","focus","currentTarget","getObjectByKey","hasOwnProperty","role","nodes","convert","nodeListToArray","querySelectorAll","changeClass","className","isAdd","addClass","removeClass","isShow","text","isDataSafe","RegExp","inputNode","handler","event","keyCode","getTemplatedNode","templateNode","replaceData","classNameCategoryActive","classNameItemActive","categories","currentCategory","categoryTemplate","itemTemplate","content","loader","categoryContainer","itemContainer","addCustomEvent","onTileAdd","onTileRemove","setCurrentCategory","regexp","escapeRegExp","test","onCategoryClick","category","onItemClick","getCategory","getItem","updateItem","addItem","appendChild","setItems","addItems","addCategory","ids","isSelected","in_array","showLoader","popup","close","Main","PopupManager","create","width","height","autoHide","lightShadow","closeByEsc","closeIcon","offsetLeft","angle","buttons","CloseButton","onclick","setContent","maskNode","classList","add"],"mappings":"CAAC,SAAWA,GAEXC,GAAGC,UAAU,SACb,GAAID,GAAGE,GAAGC,aACV,CACC,OAGD,IAAIC,KAMJ,SAASC,EAAKC,GAEbC,KAAKC,GAAKF,EAAOE,GACjBD,KAAKE,KAAOH,EAAOG,MAAQ,KAC3BF,KAAKG,KAAOJ,EAAOI,KACnBH,KAAKI,KAAOL,EAAOK,KACnBJ,KAAKK,WAAa,KAElBL,KAAKM,SAAWC,EAAOC,QAAQ,iBAAkBR,KAAKG,MACtD,IAAKH,KAAKE,KACV,CACCF,KAAKE,KAAOF,KAAKM,SAASG,aAG5BX,EAAKY,UAAUC,eAAiB,SAASC,GAExC,IAAKZ,KAAKK,WACV,CACC,OAGDL,KAAKK,WAAWQ,MAAMC,QAAUF,EAAY,GAAK,QAOlD,SAAShB,EAAaG,GAErBC,KAAKe,KAAKhB,GAEXH,EAAac,UAAUM,QACtBC,eAAgB,kBAChBC,UAAW,aACXC,WAAY,cACZC,SAAU,YACVC,QAAS,WACTC,UAAW,MACXC,aAAc,SACdC,kBAAmB,eACnBC,OAAQ,SACRC,MAAO,QACPC,sBAAuB,uBACvBC,kBAAmB,mBACnBC,aAAc,qBAEfjC,EAAakC,QAAU,SAAU7B,GAEhC,IAAI8B,EAAWlC,EAAamC,OAAO,SAAUC,GAC5C,OAAQA,EAAKhC,KAAOA,GAAMiC,SAASC,KAAKC,SAASH,EAAKI,WAEvD,OAAON,EAASO,OAAS,EAAIP,EAAS,GAAK,MAE5CnC,EAAa2C,QAAU,WAEtB,OAAO1C,GAGRD,EAAac,UAAUK,KAAO,SAAUhB,GAEvCC,KAAKwC,QACLxC,KAAKC,GAAKF,EAAOE,GACjBD,KAAKqC,QAAU5C,G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